<?php

class Zend_View_Helper_ReformatBaseUrl extends Zend_View_Helper_Abstract
{

    public function reformatBaseUrl($file = null)
    {
        if (strpos($file, "http") === 0) {
            return $file;
        }
        return $this->view->serverUrl($this->view->baseUrl($file));
    }
}